package com.hjq.demo.yuliao.api

import com.hjq.http.config.IRequestApi
import com.hjq.http.config.IRequestType
import com.hjq.http.model.BodyType

/**
 *
 * @author jiahe
 * 创建日期 2022/2/12
 * 描述 登录和注册
 *
 */
class LoginRegistApi : IRequestApi {

    override fun getApi(): String {
        return "login/phone_login"
    }

    open var phone: String = ""
        set(value) {
            field = value
        }

    open var phone_code: String = ""
        set(value) {
            field = value
        }

    open var password: String = ""
        set(value) {
            field = value
        }

    data class LoginRegistResp(
        val ry_token: String,
        val user_token: String
    )

}